package cn.schoolwow.workflow.test.module.analyzeWorkReport.audit.single.addBeforeSign.testcase;

import cn.schoolwow.quickflow.domain.FlowContext;
import cn.schoolwow.quickflow.flow.BusinessFlow;
import cn.schoolwow.workflow.domain.instance.WorkFlowInstanceStatus;
import cn.schoolwow.workflow.test.module.analyzeWorkReport.audit.single.addBeforeSign.flow.AddBeforeSignRejectAnalyzeWorkReportFlow;
import cn.schoolwow.workflow.test.module.analyzeWorkReport.audit.single.common.handler.AuditTestCaseFlowTryCatchFinallyHandler;

public class AddBeforeSignRejectAnalyzeWorkReportTestCaseFlow implements BusinessFlow {
    @Override
    public void executeBusinessFlow(FlowContext flowContext) throws Exception {
        flowContext.startFlow(new AddBeforeSignRejectAnalyzeWorkReportFlow())
                .tryCatchFinallyHandler(new AuditTestCaseFlowTryCatchFinallyHandler())
                .putInstanceData(WorkFlowInstanceStatus.Finished)
                .execute();
    }

    @Override
    public String name() {
        return "添加前加签且被加签人拒绝分析工作报告任务测试用例";
    }
}
